<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- <input type="text" @blur="myBlur"> -->
        <input type="text" @keyup.enter="submit">
        <!-- <button @click="submit"> 提交</button> -->
    </div>
</body>
<script src="./vue.min.js"></script>
<script>
    new Vue({
        el:"#app",
        data:{},
        methods: {
            myBlur(){
                console.log(111);
            },
            submit(e){
                let res = e.target.value;
                console.log(res);
            }
        },
    })
</script>
</html>